﻿using WebCommon;

namespace Payment.Weixin2
{
    /// <summary>
    /// 
    /// </summary>
    //public class Accesstoken
    //{
    //    public WxConfig WxConfig { get; private set; }

    //    public Accesstoken(WxConfig wxConfig)
    //    {
    //        this.WxConfig = wxConfig;
    //    }

    //    /// <summary>
    //    /// 获取code
    //    /// </summary>
    //    /// <param name="wxConfig"></param>
    //    /// <param name="returl"></param>
    //    /// <param name="state">单号</param>
    //    /// <returns></returns>
    //    public string GetCodeUrl(string returl,string state)
    //    {
    //       returl= System.Web.HttpUtility.UrlEncode(returl );
    //        return string.Format(
    //              "https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope=snsapi_base&state={2}#wechat_redirect", this.WxConfig.AppId, returl, state);
    //    }

        
    //}
}